package librecalcdataproxy.ui;

import com.sun.star.beans.PropertyValue;
import com.sun.star.frame.XDispatch;
import com.sun.star.frame.XStatusListener;
import com.sun.star.uno.XComponentContext;
import librecalcdataproxy.server.EventExchanger;

/**
 *
 * @author Wiktor Toporek
 */
public final class ExportEventHandler implements XDispatch { 

    private XComponentContext xContext; 
    private EventExchanger ee;
    
    public ExportEventHandler(final XComponentContext xContext, EventExchanger ee) { 
       this.xContext = xContext; 
       this.ee = ee;
    } 

    @Override
    public void dispatch(com.sun.star.util.URL url, PropertyValue[] pvs) {
        ee.setClick();
    }

    @Override
    public void addStatusListener(XStatusListener xl, com.sun.star.util.URL url) {
        //throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void removeStatusListener(XStatusListener xl, com.sun.star.util.URL url) {
        //throw new UnsupportedOperationException("Not supported yet.");
    }

 }